Skip to content

Make the sync subtitle delay feature intuitive - #3160

Merged
fire-light42 merged 1 commit into
recloudstream:masterfrom
refirestream:feature/subtitle-delay-too-early
Sep 23, 2026
Merged

fire-light42 merged 1 commit into
recloudstream:masterfrom
refirestream:feature/subtitle-delay-too-early

Conversation

@refirestream

Copy link
Copy Markdown
Contributor

I've always felt like this subtitle delay feature was counter intuitive, the + button on the right should actually make the white slider go forward (meaning that the subtitle was lagging too much behind the audio), as opposed to what is currently implemented.
Screenshot_20260908-165702_CloudStream Debug
This PR implements that.

@fire-light42 fire-light42 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great feature! I do agree that it is much more intuitive now!

However it seems like this pull request accidentally included additional code which changes subtitle groupings

Invert the sign convention of the player subtitle delay so the value in
the offset dialog is the number of milliseconds the subtitles are shown
too late (a lag), and a negative value means they are shown too early.

- subtitleDelay no longer negates setSubtitleOffset/getSubtitleOffset, so
  the box value matches the decoder offset sign. The +/> and -/< buttons
  are unchanged, so each press now shifts playback the opposite way.
- Swap the two hint format strings so the wording tracks the new sign
  (positive -> too late, negative -> too early).
- Flip the sync-list position math and the row-tap handler to match the
  new offset sign.

Generated with AI
@refirestream
refirestream force-pushed the feature/subtitle-delay-too-early branch from f573980 to 72a39c3 Compare September 17, 2026 07:22
@fire-light42
fire-light42 merged commit 903ef47 into recloudstream:master Sep 23, 2026
2 checks passed
@refirestream

Copy link
Copy Markdown
Contributor Author

Thanks for merging ! And sorry about that mix-up with the accidentally included code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants